package Lab06.Extra1;

public class Splitter implements ITextProcess{
    public static String process(String s){
        String[] split=s.split(" ",-1);
        //-1表示尽可能多分割，0表示字符串末尾的空格可能会丢弃
        StringBuilder s1= new StringBuilder();
        for(String splitter:split){
            s1.append(splitter);
        }
        return s1.toString();
    }
}
